//
//  FeedRequestCallBack.m
//  NewsReader
//
//  Created by blacksun on 11-2-16.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "FeedRequestCallBack.h"


@implementation FeedRequestCallBack

-(void) request:(id)aRequest successWithResult:(id)result andCommand:(int) aCommand{
	switch (aCommand) {
		case kFeedQueryFeedsWithSectionOrSubject:{
			NSDictionary* feedsDict = result;
			NSMutableArray *feeds = [ModelParser parseFeeds:feedsDict];
			[self.delegate request:aRequest successWithResult:feeds andCommand:aCommand];
			break;
		}
		default:
			break;
	}
} 
@end
